package com.yangming.springboot.dao;

import org.springframework.stereotype.Repository;
import com.yangming.springboot.vo.UserRole;

import java.util.List;

@Repository
public interface UserRoleDao {

    int deleteByPrimaryKey(Integer id);

    int insert(UserRole record);

    int insertSelective(UserRole record);

    UserRole selectByPrimary(Integer id);

    int updateByPrimaryKeySelective(UserRole record);

    int updateByPrimaryKey(UserRole record);

    int insertBatch(List<UserRole> userRoles);

    public int countUserRoleByUserId(Integer userId);

    public int deleteUserRoleByUserId(Integer userid);


}
